﻿using GraphProcessor;
using IQIGame.Onigao.Logic;

namespace IQIGame.Onigao.GamePlay.Editors
{
    [System.Serializable, NodeMenuItem(LevelEditorConst.Level + "/" + LevelEditorConst.Trigger + "/" + LevelEditorConst.EndBattle, typeof(LevelServiceGraph))]
    public class LevelServiceTriggerNode_EndBattle : LevelServiceTriggerNode
    {
        protected override ServiceTriggerType triggerType => ServiceTriggerType.EndBattle;

        protected override string triggerName => LevelEditorConst.EndBattle;
        [LevelServiceEditorCustomProperty(ServiceTriggerType.EndBattle,"胜利队伍")]
        public int successTeam;
        
        protected override LevelServiceCustomConfig CreateConfig()
        {
            return new LevelServiceTriggerCustom_EndBattle()
            {
                successTeam = this.successTeam
            };
        }
    }
}